import request from '@/utils/request'

// 查询矿领导带班列表
export function listLeaderDuty(query) {
  return request({
    url: '/dispatch/leaderDuty/list',
    method: 'get',
    params: query
  })
}

// 查询矿领导带班详细
export function getLeaderDuty(dutyId) {
  return request({
    url: '/dispatch/leaderDuty/' + dutyId,
    method: 'get'
  })
}

// 新增矿领导带班
export function addLeaderDuty(data) {
  return request({
    url: '/dispatch/leaderDuty',
    method: 'post',
    data: data
  })
}

// 修改矿领导带班
export function updateLeaderDuty(data) {
  return request({
    url: '/dispatch/leaderDuty',
    method: 'put',
    data: data
  })
}

// 删除矿领导带班
export function delLeaderDuty(dutyId) {
  return request({
    url: '/dispatch/leaderDuty/' + dutyId,
    method: 'delete'
  })
}
